{{template "base/base.html" .}}
{{template "base/base_common.html" .}}
{{define "meta"}}<title>{{i18n .Lang "auth.register"}} - {{i18n .Lang "app_name"}}</title>{{end}}
{{define "body"}}
<div class="row">
    <div id="content" class="col-md-8 col-md-offset-2">
    	<div class="box">
    		<div class="cell last slim">
    			<div class="row">
    				<div class="col-md-6 auth-page">
    					<h3 class="title">
    						<span class="glyphicon glyphicon-user"></span> {{i18n .Lang "auth.sign_up"}}
    					</h3>
    					<form method="POST" action="{{.AppUrl}}register">
                            {{.xsrf_html}}{{.once_html}}

                            {{template "base/form/fields.html" .RegisterFormSets}}

                            <button class="btn btn-primary">{{i18n .Lang "auth.sign_up"}}&nbsp;&nbsp;<span class="glyphicon glyphicon-circle-arrow-right"></span></button>
    					</form>
    				</div>

    				<div class="col-md-6 auth-page">
        				<div class="auth-page">
        					<h3 class="title">
        						<span class="glyphicon glyphicon-question-sign"></span> {{i18n .Lang "help"}}
        					</h3>
        					<p class="well">
        						{{i18n .Lang "auth.register_if_you_registered"}}
        					</p>
        					<p>
                            	<a href="{{.AppUrl}}login" class="btn btn-default">{{i18n .Lang "auth.login_now"}}&nbsp;&nbsp;<span class="glyphicon glyphicon-circle-arrow-right"></span></a>
        					</p>
	        			</div>
    				</div>
    			</div>
			</div>
    	</div>
	</div>
</div>
{{end}}